package com.ms.service.module.analysisgroup.async;

import com.ms.service.module.analysisgroup.db.AnalysisGroupDAO;
import com.ms.service.module.analysisgroup.db.model.BasicAlertLogModel;
import com.xpec.c4.service.module.task.TaskAsyncCommand;

/**
 * 儲存繼承BasicAlertLogModel的logModel
 * @author 16040
 *
 */
public class SaveAlertLogModelAsync extends TaskAsyncCommand{

	private BasicAlertLogModel alertLogModel;
	
	@Override
	public void asyncExecute() throws Exception {
		if(alertLogModel != null)
			AnalysisGroupDAO.getInstance().saveAlertLog(alertLogModel);
	}

	@Override
	public void execute() throws Exception {
		
	}

	public void setAlertLogModel(BasicAlertLogModel alertLogModel) {
		this.alertLogModel = alertLogModel;
	}

}
